"""
    @author yu_chen
    @date  
    @todo 
"""
import pymysql

conn = pymysql.connect(user='root', password='1qaz@WSX', database='spider', charset='utf8')
cursor = conn.cursor()
query = 'select version()'
cursor.execute(query)
print(cursor.fetchone())
# for (id, name) in cursor:
#     print(id, name)
cursor.close()
conn.close()
